package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class BrandUpdateInfoParam implements Serializable {
    @NotNull(message = "必须提交品牌名称")
    @ApiModelProperty(value = "品牌名称", required = true, example = "XXX的品牌")
    private String name;

    @NotNull(message = "必须提交品牌拼音")
    @ApiModelProperty(value = "品牌拼音", required = true, example = "XXX的品牌拼音")
    private String pinyin;

    @NotNull(message = "必须提交品牌标志")
    @ApiModelProperty(value = "品牌标志", required = true, example = "XXX的品牌标志")
    private String logo;

    @NotNull(message = "必须提交品牌简介")
    @ApiModelProperty(value = "品牌简介", required = true, example = "XXX的品牌简介")
    private String description;

    @NotNull(message = "必须提交品牌关键字")
    @ApiModelProperty(value = "品牌关键字", required = true, example = "XXX的品牌关键字")
    private String keywords;

    @NotNull(message = "添加品牌失败，必须提交排序序号！")
    @Range(max = 99, message = "添加属性失败，排序序号值必须0~99之间！")
    @ApiModelProperty(value = "排序序号,1~255之间数字", required = true, example = "90")
    private Integer sort;

    @NotNull(message = "必须提交品牌权限码")
    @Range(max = 1, message = "修改品牌信息失败，权限码必须在0~1之间")
    @ApiModelProperty(value = "品牌权限码", required = true)
    private Integer enable;
}
